# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-boot-maker
pkgver=5.7.8
pkgrel=1
pkgdesc='Tool to create a bootable usb stick quick and easy'
arch=('loong64' 'x86_64')
url="https://github.com/linuxdeepin/deepin-boot-maker"
license=('GPL3')
depends=('deepin-qt5integration' 'p7zip' 'mtools' 'syslinux')
makedepends=('qt5-tools' 'python' 'gtest')
groups=('deepin-extra')
source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-boot-maker/archive/$pkgver.tar.gz")
sha512sums=('80caf7402e3cb9884814acaf1cdf9dad815f8abf58263a199e19f75c960e459e9651efdf2da480d3c06dd6faefa4f003d1be569ddcaf635547e3fada3ed7aa82')

build(){
  cd deepin-boot-maker-$pkgver
  qmake-qt5 PREFIX=/usr
  make
}

package() {
  cd deepin-boot-maker-$pkgver
  make INSTALL_ROOT="$pkgdir" install
}
